<%@ Control Language="VB" AutoEventWireup="false" CodeFile="ctlReporteAltas.ascx.vb" Inherits="Reportes_Controls_ctlReporteAltas" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.1.Export, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView.Export" TagPrefix="dx" %>
<%@ Register Assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
    Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.XtraReports.v10.1.Web, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.XtraReports.Web" TagPrefix="dx" %>

<dx:ASPxPanel id="ASPxPanel1" runat="server" Width="200px">
    <panelcollection>
<dx:PanelContent runat="server"><TABLE style="WIDTH: 156px"><TBODY><TR><TD style="HEIGHT: 20px"><dx:ASPxButton runat="server" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css" Text="Exportar" CssPostfix="Youthful" CssFilePath="~/App_Themes/Youthful/{0}/styles.css" ID="btnExportar" OnClick="btnExportar_Click">
<Image Url="~/Images/icons/doc_excel_table.png"></Image>
</dx:ASPxButton>
</TD><TD style="HEIGHT: 20px"><dx:ASPxButton runat="server" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css" Text="Imprimir" CssPostfix="Youthful" CssFilePath="~/App_Themes/Youthful/{0}/styles.css" ID="btnImprimir">
<Image Url="~/Images/icons/printer.png"></Image>
</dx:ASPxButton>
</TD><TD style="WIDTH: 168px; HEIGHT: 20px"><dx:ASPxButton runat="server" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css" Text="Mostrar" CssPostfix="Youthful" CssFilePath="~/App_Themes/Youthful/{0}/styles.css" ID="btnRefrescar" OnClick="btnRefrescar_Click">
<Image Url="~/Images/icons/page_refresh.png"></Image>
</dx:ASPxButton>
</TD></TR></TBODY></TABLE></dx:PanelContent>
</panelcollection>
</dx:ASPxPanel>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <table style="width: 100%;height: 100%">
            <tr>
                <td style="width: 1332px" >
                    &nbsp;<dx:ASPxTextBox ID="txtRange" runat="server" ClientVisible="False" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        Text="1" Width="170px">
                        <ValidationSettings>
                            <ErrorFrameStyle ImageSpacing="4px">
                                <ErrorTextPaddings PaddingLeft="4px" />
                            </ErrorFrameStyle>
                        </ValidationSettings>
                    </dx:ASPxTextBox>
                    <table class="xFormView" style="width: 450px">
                        <tr>
                            <td class="formviewsubheader" colspan="3">
                                <asp:Literal ID="Literal1" runat="server" Text="Parametros de Busqueda"></asp:Literal></td>
                        </tr>
                        <tr>
                            <td align="right" class="formviewlabelcell" style="width: 40%; height: 22px;">
                                <asp:Literal ID="Literal12" runat="server" Text="Incluir Rango de fechas:"></asp:Literal></td>
                            <td align="left" style="height: 22px;" colspan="2">
                                <asp:CheckBox ID="chkIncludeDateRange" runat="server" OnCheckedChanged="chkIncludeDateRange_CheckedChanged" AutoPostBack="True" /></td>
                        </tr>
                        <tr>
                            <td align="right" class="formviewlabelcell" style="width: 40%; height: 20px;">
                                <asp:Literal ID="Literal13" runat="server" Text="Fecha de Inicial:"></asp:Literal></td>
                            <td align="left" style="height: 20px;" colspan="2">
                                &nbsp;
                                <dx:ASPxDateEdit ID="txtStartDate" runat="server" AutoPostBack="True" CssFilePath="~/App_Themes/Youthful/{0}/styles.css" CssPostfix="Youthful" ShowShadow="False" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css">
                                    <ValidationSettings>
                                        <ErrorFrameStyle ImageSpacing="4px">
                                            <ErrorTextPaddings PaddingLeft="4px" />
                                        </ErrorFrameStyle>
                                    </ValidationSettings>
                                    <CalendarProperties>
                                        <HeaderStyle Spacing="8px" />
                                        <FooterStyle Spacing="3px" />
                                    </CalendarProperties>
                                </dx:ASPxDateEdit>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="formviewlabelcell" style="width: 40%; height: 17px;">
                                <asp:Literal ID="Literal14" runat="server" Text="Fecha de Final:"></asp:Literal></td>
                            <td align="left" style="height: 17px;" colspan="2">
                                &nbsp;
                                <dx:ASPxDateEdit ID="txtEndDate" runat="server" AutoPostBack="True" CssFilePath="~/App_Themes/Youthful/{0}/styles.css" CssPostfix="Youthful" ShowShadow="False" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css">
                                    <ValidationSettings>
                                        <ErrorFrameStyle ImageSpacing="4px">
                                            <ErrorTextPaddings PaddingLeft="4px" />
                                        </ErrorFrameStyle>
                                    </ValidationSettings>
                                    <CalendarProperties>
                                        <HeaderStyle Spacing="8px" />
                                        <FooterStyle Spacing="3px" />
                                    </CalendarProperties>
                                </dx:ASPxDateEdit>
                                </td>
                        </tr>
                        <tr>
                            <td align="right" class="formviewlabelcell" style="width: 40%; height: 17px">
                            </td>
                            <td align="left" style="height: 17px" colspan="2">
                                &nbsp; &nbsp;&nbsp;
                                <dx:ASPxLabel ID="lblMensaje" runat="server" ClientVisible="False" ForeColor="#CC0000"
                                    Visible="False" Width="200px">
                                </dx:ASPxLabel>
                            </td>
                        </tr>
                    </table>
                    <dx:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" DataSourceID="ReporteAltas" Width="100%">
                        <Styles CssFilePath="~/App_Themes/Youthful/{0}/styles.css" CssPostfix="Youthful">
                            <Header ImageSpacing="5px" SortingImageSpacing="5px">
                            </Header>
                            <LoadingPanel ImageSpacing="10px">
                            </LoadingPanel>
                        </Styles>
                        <SettingsLoadingPanel Text="" />
                        <SettingsPager Visible="False">
                        </SettingsPager>
                        <ImagesFilterControl>
                            <LoadingPanel Url="~/App_Themes/Youthful/Editors/Loading.gif">
                            </LoadingPanel>
                        </ImagesFilterControl>
                        <Images SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css">
                            <LoadingPanelOnStatusBar Url="~/App_Themes/Youthful/GridView/gvLoadingOnStatusBar.gif">
                            </LoadingPanelOnStatusBar>
                            <LoadingPanel Url="~/App_Themes/Youthful/GridView/Loading.gif">
                            </LoadingPanel>
                        </Images>
                        <Columns>
                            <dx:GridViewDataTextColumn FieldName="Codigo" VisibleIndex="0">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="Membresia" VisibleIndex="1">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="Nombres" VisibleIndex="2">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="Apellido Paterno" VisibleIndex="3">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="Apellido Materno" VisibleIndex="4">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataDateColumn FieldName="FechaAprobacion" VisibleIndex="5">
                            </dx:GridViewDataDateColumn>
                        </Columns>
                        <StylesEditors>
                            <CalendarHeader Spacing="8px">
                            </CalendarHeader>
                            <ProgressBar Height="25px">
                            </ProgressBar>
                        </StylesEditors>
                    </dx:ASPxGridView>
                    <asp:ObjectDataSource ID="ReporteAltas" runat="server" OldValuesParameterFormatString="original_{0}"
                        SelectMethod="GetData" TypeName="ClubReportesTableAdapters.sp_ReporteAltasTableAdapter">
                        <SelectParameters>
                            <asp:ControlParameter ControlID="txtRange" DefaultValue="1" Name="Range"
                                PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="txtStartDate" DefaultValue="" Name="FechaInicial"
                                PropertyName="Value" Type="DateTime" />
                            <asp:ControlParameter ControlID="txtEndDate" Name="FechaFinal" PropertyName="Value"
                                Type="DateTime" />
                        </SelectParameters>
                    </asp:ObjectDataSource>
                    <dx:ASPxGridViewExporter ID="ASPxGridViewExport" runat="server">
                    </dx:ASPxGridViewExporter>
                </td>
            </tr>
        </table>
    </ContentTemplate>
</asp:UpdatePanel>
